package net.wofly.sale.order.service;

import java.util.List;

import net.wofly.sale.order.domain.OrderContent;

public interface ISaleOrderContentService {

	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	public OrderContent save(OrderContent entity);

	/**
	 * 删除
	 * 
	 * @param entity
	 * @return
	 */
	public void delete(OrderContent entity);

	/**
	 * 根据主键ID删除
	 * 
	 * @param key
	 * @return
	 */
	public void delete(String key);
	
	public void deleteByOrderID(String orderID);

	/**
	 * 根据主键查询
	 * 
	 * @param key
	 * @return
	 */
	public OrderContent findOne(String key);
	
	public List<OrderContent> save(List<OrderContent> entityList) ;
	
	public void orderTimeoutRefresh();

	List<OrderContent> findByOrderIDIn(List<String> orderIDList);
}
